import request from '@/utils/request'

// 查询医生业绩目标列表
export function listDoctorper(query) {
  return request({
    url: '/doctorper/doctorper/list',
    method: 'get',
    params: query
  })
}

// 查询医生业绩目标详细
export function getDoctorper(id) {
  return request({
    url: '/doctorper/doctorper/' + id,
    method: 'get'
  })
}

// 新增医生业绩目标
export function addDoctorper(data) {
  return request({
    url: '/doctorper/doctorper',
    method: 'post',
    data: data
  })
}

// 修改医生业绩目标
export function updateDoctorper(data) {
  return request({
    url: '/doctorper/doctorper',
    method: 'put',
    data: data
  })
}

// 删除医生业绩目标
export function delDoctorper(id) {
  return request({
    url: '/doctorper/doctorper/' + id,
    method: 'delete'
  })
}
